﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="ReleaseReview.aspx.vb" Inherits="gojira.ReleaseReview" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource1" GridLines="None">
        <Columns>
            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" 
                HeaderText="Details of this release:">
                <ItemTemplate>
                    <h1>
                        <%# Eval("FilmName") %>
                    </h1>
                    <p>
                        Format: <%# Eval("Format")%>
                    </p>
                    <p>
                        Region: <%# Eval("Region")%>
                    </p>

                    <p>
                        <asp:Image runat="server" Height="200px" ImageUrl='<%# Eval("FrontCover") %>' 
                            Width="150px" />
                    </p>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:godzillaFilms %>" 
        ProviderName="<%$ ConnectionStrings:godzillaFilms.ProviderName %>" 
        SelectCommand="SELECT * FROM [godzillaFilmsQuery] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <br />
    Rate this release:<br />
        <asp:Rating
        width="200" 
        Height="40" 
        ID="Rating2" 
        runat="server" 
        StarCssClass="ratingStar" 
        WaitingStarCssClass="savedRatingStar" 
        EmptyStarCssClass="emptyRatingStar" 
        filledStarCssClass="filledRatingStar"
        MaxRating="5" 
    >
    </asp:Rating>
    <br />
    <asp:Button ID="btn_rate" runat="server" Text="Rate" />
    <br />
</asp:Content>

